Improve Orca Optimization and Frequency Convergence Settings#888
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates ARC’s ORCA adapter defaults to improve optimization convergence behavior, align DFT grid settings between fine optimization and frequency calculations, and enhance TS optimizations with periodic Hessian recalculation. It also adds unit tests to validate the new ORCA input generation behavior.
Changes:
- Set ORCA default optimization convergence to
TightOpt(previouslyNormalOpt). - Default DFT grid selection to
defgrid3forfreq/optfreq(and forfineoptimizations), while keeping regularoptatdefgrid2. - For TS optimizations (
OptTS), addRecalc_Hess 5to the%geomblock, and add corresponding unit tests for grid/convergence/TS Hessian settings.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
arc/settings/settings.py |
Updates ORCA default optimization convergence (opt_convergence) to TightOpt. |
arc/job/adapters/orca.py |
Adjusts default DFT grid behavior for freq/optfreq and adds Recalc_Hess 5 for OptTS. |
arc/job/adapters/orca_test.py |
Adds unit tests covering DFT grid defaults, TightOpt presence, and TS %geom Hessian recalc settings. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #888 +/- ##
==========================================
- Coverage 60.59% 60.59% -0.01%
==========================================
Files 103 103
Lines 31186 31186
Branches 8128 8128
==========================================
- Hits 18898 18896 -2
+ Misses 9936 9931 -5
- Partials 2352 2359 +7
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
77a5248 to
fe45a7e
Compare
| self.add_to_args(val=""" | ||
| %geom | ||
| Calc_Hess true # calculation of the exact Hessian before the first opt step | ||
| Recalc_Hess 5 |
There was a problem hiding this comment.
Please note that this is very expensive, and sometimes leads to stability issues. We should also reconsider the earlier line, and putting it as a trash and not default.
87b1dd4 to
5d31bf4
Compare
Enhanced frequency calculations to use defgrid3 instead of defgrid2, for consistency with the DFT grid of the fine opt job.